package conf

import (
	eConf "front/engine/conf"
	"qingbing/xztools/crons"
	"qingbing/xztools/logs"
)

/**
 * 应用 默认配置
 */
var App = &struct {
	ID   string // 应用唯一ID
	Name string // 应用名称
}{
	ID:   "front-engine",
	Name: "前端引擎",
}

/**
 * 引擎 默认配置
 */
var ConfEngine = &eConf.Conf{
	Address: "0.0.0.0",
	Port:    "80",
	ConfFileLog: logs.ConfFileLog{
		ID:           "access",
		Dir:          "./runtime", // 日志目录
		TimeInterval: crons.DAILY, // 日志分割时长[年:@yearly; 月:@monthly; 日:@daily; 时:@hourly]
		MaxSize:      1048576,     // 文件大小， 1048576 B => 2 MB
	},
}
